$(function(){
	
	var editoroption={
			/* toolbars:[
	            [   'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', '|',
	                'insertorderedlist', 'insertunorderedlist','selectall', 'cleardoc',
	                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify'
	               
	               ]
	        ], */
			initialContent:'填写意见',
			autoClearinitialContent:true,
			autoHeightEnabled:true,
			minFrameHeight:550,
			initialFrameWidth:1000,  //初始化编辑器宽度,默认1000
	        initialFrameHeight:320   //初始化编辑器高度,默认320
		};
		var editor = new baidu.editor.ui.Editor(editoroption);
		editor.render( 'leaderAdvice' );
	
	$("#insert_file").click(function(){
		editor.window.print();
		alert(editor.getContent());
	});
});